<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:th="http://www.thymeleaf.org">
<head>
<title>首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	 <div  id="content">
            <section class="content-header">
                <h1>
                    <i class="fa fa-cogs"></i>
                    <strong>分析模型配置</strong>
                </h1>
                <ol class="breadcrumb">
                    <li><a href="#"><i class="fa fa-home "></i>Home</a></li>
                    <li>基本配置</li>
                    <li class="active">分析模型添加</li>
                </ol>
            </section>
            <!-- Main content -->
            <section class="content"> 
           	    <div class="row">
           	       <div class="col-md-3">
           	       	   <div class="box box-info">
           	       	      <div class="box-header with-border">
							<i class="fa fa-cubes"></i>
    						<h4 class="box-title">分析模型选择</h4>	
        				 </div>
        				 <div class="box-body" >
	           	             <div class="form-inline" style="100%">
			                    <div class="input-group">
			                    	<span class="input-group-btn">
			                    	<span class="form-control">分析模型名称</span>
									<input type="text" class="form-control" id="name"  style="width: 60%"/>
									</span>
									<input type="hidden" class="form-control" id="noteId" name="noteId" th:value="${noteId}"/>
								</div>
        				     </div>
        				  </div>
        				 <div class="box-body" >
	           	             <div class="form-inline">
			                    <div class="input-group">
									<span class="input-group-btn">
									<button class="btn btn-info pull-right addModelBtn" >模型引入</button>
									<button class="btn btn-info pull-right delNodeBtn" >删除节点</button>
									<button class="btn btn-info pull-right editNodeBtn" >编辑节点</button>
									<button class="btn btn-info pull-right addChildNodeBtn" >添加子节点</button>
									<button class="btn btn-info pull-right addRootNodeBtn" >添加主节点</button>
									</span>
								</div>
        				     </div>
        				  </div>
        				 <div class="box-body" id="ztreef" >
        				     <ul id="deviceTree" class="ztree"></ul>
        				 </div>
           	       	   </div>  
           	       </div>
           	       <div  class="col-md-9">
           	           <div class="box-header with-border">
							<i class="fa fa-cubes"></i>
    						<h4 class="box-title">点位</h4>	
        				</div>
           	             <div class="box-body" >
	           	             <div class="form-inline">
			                    <div class="input-group">
									<input type="text" class="form-control" id="keyword"  placeholder="Search..." />
									<span class="input-group-btn">
									<button  type="button" class="btn btn-info searchBtn">查询</button>
									<button  type="button" name="reset" id="reset-btn" class="btn btn-info resetBtn">撤消</button>
									</span>
								</div>
								<div class="input-group">
								<form action="" method="get">
										<label><input name="isReceived" type="radio" value="0" checked="checked"/>实点</label> 
										<label><input name="isReceived" type="radio" value="1" />虚点</label> 
								</form>
								</div>
	        				     <button class="btn btn-info pull-right addBtn" >引入</button>
	        				     <button class="btn btn-info pull-right delBtn" >删除</button>
	        				     
        				     </div>
        				  </div>
        				  <div class="box-body">
        				     <table id="scadaBaseTable" class="mytable dataTable table-bordered text-center table-striped table-hover" cellspacing="0" width="100%">
                                    <thead>
                                        <tr>
                                            <th width="3%">序号</th>
											<th width="2%"><input type="checkbox" id="checkAllContract1"/></th>
											<th width="4%">名称</th>
											<th width="4%">采集单元名称</th>
											<th width="4%">别名</th>
											<th width="4%">点位类型</th>
											<th width="3%">数据类型</th>
											<th width="4%">计量单位</th>
											<th width="4%">上线</th>
											<th width="4%">下线</th>
											<th width="4%">采集字段</th>
											<th width="4%">创建人</th>
											<th width="4%">创建时间</th>
											<th width="4%">备注</th>
                                        </tr>
                                    </thead>
                                    <tbody>
               						</tbody>
                                </table>
        				</div>
        				<div class="modal-footer">
							<button type="button" class="btn btn-default"
								data-dismiss="modal">返回</button>
						</div>
           	       </div>
           	    </div>
            </section>
            <!-- 新增编辑主节点 -->
	  <div class="modal" id="divideRootNodeModal">
			<div class="modal-dialog" role="dialog">
				<div class="modal-content">
					<form id="divideRootNodeAtrrForm">
						<input class="form-control" type="hidden" id="RootNodeid" name="RootNodeid" />
						<input class="form-control" type="hidden" id="upParaId" name="upParaId" />
						<input class="form-control" type="hidden" id="RootNodecreateTime" name="RootNodecreateTime" />
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-label="Close">
								<span aria-hidden="true">&times;</span>
							</button>
							<h4 class="modal-title">
								<strong>节点</strong>
							</h4>
						</div>
						<div class="modal-body">
							<div class="form-horizontal">
								<div class="form-group">
									<label class="col-sm-2 control-label">名称</label>
									<div class="col-sm-4" style="width: 80%">
										<div class="col-md-11">
											<input class="form-control" id="RootNodename" name="RootNodename" />
										</div>
										<div class="col-md-1">
											<span style="color: #F00; fontsize: 30px">*</span>
										</div>
									</div>
								</div>
							<div class="form-group">
				              <label class="col-sm-2 control-label">备注</label>
				                <div class="col-sm-4" style="width: 80%">
				                  <div class="col-md-11">
				                    <textarea class="form-control" style="width: 100%" rows="2"
												name="RootNodememo" id="RootNodememo"></textarea></div>
				                </div>
					         </div>
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-primary saveRootNodeBtn">保存</button>
							<button type="button" class="btn btn-default"
								data-dismiss="modal">返回</button>
						</div>
					</form>
				</div>
			</div>
		</div>
	  <div class="modal" id="divideRootNodeNotModal"  style="height: 70%">
			<div class="modal-dialog"  role="dialog" style="width: 80%;height: 70%; overflow-x: hidden; overflow-y: auto;">
				<div class="modal-content">
					<form id="divideRootNodeNotAtrrForm">
						<input class="form-control" type="hidden" id="RootNodeNotid" name="RootNodeNotid" />
						<!-- <input class="form-control" type="hidden" id="upParaId" name="upParaId" />
						<input class="form-control" type="hidden" id="RootNodecreateTime" name="RootNodecreateTime" /> -->
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-label="Close">
								<span aria-hidden="true">&times;</span>
							</button>
							<h4 class="modal-title">
								<strong>未被引入点位</strong>
							</h4>
						</div>
						<div class="box-body" >
	           	             <div class="form-inline">
			                    <div class="input-group">
									<input type="text" class="form-control" id="keyword1"  placeholder="Search..." />
									<span class="input-group-btn">
									<button  type="button" class="btn btn-info searchnotBtn">查询</button>
									<button  type="button" name="reset" id="reset-btn" class="btn btn-info resetnotBtn">撤消</button>
									</span>
								</div>
	        				     <button type="button" class="btn btn-info pull-right addRootNodeNotBtn" >引入</button>
        				     </div>
        				  </div>
						<div class="box-body">
        				     <table id="scadaBasenotTable" class="mytable dataTable table-bordered text-center table-striped table-hover" cellspacing="0" width="100%">
                                    <thead>
                                        <tr>
                                            <th width="3%">序号</th>
											<th width="2%"><input type="checkbox" id="checkAllContract1"/></th>
											<th width="4%">名称</th>
											<th width="4%">采集单元名称</th>
											<th width="4%">别名</th>
											<th width="4%">点位类型</th>
											<th width="3%">数据类型</th>
											<th width="4%">计量单位</th>
											<th width="4%">上线</th>
											<th width="4%">下线</th>
											<th width="4%">采集字段</th>
											<th width="4%">创建人</th>
											<th width="4%">创建时间</th>
											<th width="4%">备注</th>
                                        </tr>
                                    </thead>
                                    <tbody>
               						</tbody>
                                </table>
        				</div>
					</form>
				</div>
			</div>
		</div>
	  <div class="modal" id="divideModelNodeNotModal"  style="height: 80%">
			<div class="modal-dialog"  role="dialog" style="width: 80%;height: 80%; overflow-x: hidden; overflow-y: auto;">
				<div class="modal-content">
					<form id="divideModelNodeNotAtrrForm">
						<input class="form-control" type="hidden" id="ModelNodeNotid" name="ModelNodeNotid" />
						<!-- <input class="form-control" type="hidden" id="upParaId" name="upParaId" />
						<input class="form-control" type="hidden" id="RootNodecreateTime" name="RootNodecreateTime" /> -->
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-label="Close">
								<span aria-hidden="true">&times;</span>
							</button>
							<h4 class="modal-title">
								<strong>模型节点</strong>
							</h4>
						</div>
						<div class="box-body" >
	           	             <div class="form-inline">
			                    <div class="input-group">
									<input type="text" class="form-control" id="keyword2"  placeholder="Search..." />
									<span class="input-group-btn">
									<button  type="button" class="btn btn-info searchModelBtn">查询</button>
									<button  type="button" name="resetModelBtn" id="resetModelBtn" class="btn btn-info resetModelBtn">撤消</button>
									</span>
								</div>
	        				     <button type="button" class="btn btn-info pull-right addModelNodeNotBtn" >引入</button>
        				     </div>
        				  </div>
						<div class="box-body">
        				     <table id="scadaModelTable" class="mytable dataTable table-bordered text-center table-striped table-hover" cellspacing="0" width="100%">
                                    <thead>
										<tr>
											<th width="3%">序号</th>
											<th width="2%"><input type="checkbox" id="checkAllContract"/></th>
											<th width="20%">名称</th>
											<th width="5%">创建人</th>
											<th width="5%">创建时间</th>
											<th width="5%">备注</th>
										</tr>
									</thead>
                                    <tbody>
               						</tbody>
                                </table>
        				</div>
					</form>
				</div>
			</div>
		</div>
            <script th:src="@{/scada/scadamodelbaseInfo-add.js}"></script>
        </div>
		
</body>
</html>
        
